#if !defined(AFX_DIALOGQUERY_H__E6F35DB4_A87A_4AC8_9B03_54758FDBC83D__INCLUDED_)
#define AFX_DIALOGQUERY_H__E6F35DB4_A87A_4AC8_9B03_54758FDBC83D__INCLUDED_
#include "MySuperGrid.h"


#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DialogQuery.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CDialogQuery dialog


enum QUERY_TYPE {QUERY_TYPE_OPEN_STUDY, QUERY_TYPE_GET_PATINFO};

class CDialogQuery : public CDialog
{
// Construction
public:
	CDialogQuery(CWnd* pParent = NULL);   // standard constructor
	CDialogQuery(PATIENT_DATA *pPatData, CWnd* pParent = NULL, int nQueryType = QUERY_TYPE_OPEN_STUDY);

// Dialog Data
	//{{AFX_DATA(CDialogQuery)
	enum { IDD = IDD_DIALOG_QUERY };
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDialogQuery)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CDialogQuery)
	virtual BOOL OnInitDialog();
	afx_msg void OnButtonQuery();
	afx_msg void OnButtonClear();
	afx_msg void OnButtonAdd();
	afx_msg void OnButtonDelete();
	afx_msg void OnButtonUpdate();
	virtual void OnOK();
	afx_msg void OnCheckSometime();
	afx_msg void OnButtonSend();
	afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
	afx_msg void OnButtonSelectall();
	afx_msg void OnButtonPrintall();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

public:
	CMySuperGrid m_listQueryResult;
	PATIENT_DATA* m_pPatData;
	int m_nQueryType;
	BOOL m_bSelectAll;

	void InitCtrls(void);
	void DoQuery(void);

};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_DIALOGQUERY_H__E6F35DB4_A87A_4AC8_9B03_54758FDBC83D__INCLUDED_)
